Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally shows the code cell prompt (execution count) #70

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brichet
Copy link

@brichet brichet commented Nov 26, 2024

Allows displaying the input prompt (execution count) for Notebook code cell.

Checklist

  • ran doit lint locally

References

Fixes #67

Code changes

  • a setting (showCodeCellPrompt) to enable or disable display of the prompt
  • a class (.jp-deck-showCodeCellPrompt) added to the panel, depending on the value of the setting
  • CSS that hides the prompt or not, depending on the class on the panel

If the panel do not have the class, prompt on all cells are not displayed: display: none.
If the panel have the class, prompt of code cell are displayed, and prompt of other cells are hidden (visibility: hidden), to keep left-align between cells.

User-facing changes

Display the code cell prompt if expected.

Backwards-incompatible changes

None

@brichet brichet marked this pull request as draft November 26, 2024 13:25
@brichet brichet marked this pull request as ready for review November 29, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(optionally) display cell execution status
1 participant